﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CricketAdmin.master" AutoEventWireup="true"
    CodeFile="BookieRegistration.aspx.cs" Inherits="BookieRegistration" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript" language="javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (charCode != 46 && charCode > 31
            && (charCode < 48 || charCode > 57))
                return false;
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="container-fluid">
        <h3 class="page-title">
            Add Admin<small></small>
        </h3>
        <%--<ul class="breadcrumb">
            <li><i class="icon-home"></i>Home<span class="icon-angle-right"> </span></li>
            <li>Admin<span class="icon-angle-right"></span></li>
            <li>Add New</li>
        </ul>--%>
        <div>
            <asp:Button ID="btnView" runat="server" Text="Back" CssClass="btn blue" OnClick="btnView_Click" />
        </div>
        <br />
        <div class="alert alert-danger" id="layerError" runat="server" style="display: none;">
        </div>
        <div class="alert alert-success" id="layerSuccess" runat="server" style="display: none;">
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            Add Admin</div>
                    </div>
                    <div class="portlet-body form">
                        <div class="form-horizontal form-view">
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            First Name<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtFirstName" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvFN" runat="server" ErrorMessage="Please enter first name"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtFirstName"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Last Name<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtLastName" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter last name"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtLastName"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Phone #<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPhone" runat="server" onkeypress="return isNumberKey(event)"
                                                MaxLength="10" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvPhone" runat="server" ErrorMessage="Please enter phone #"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtPhone" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Email Address<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtEmailAddress" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter phone email address"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtEmailAddress"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <%-- <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Reg. Address<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtAddress" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ErrorMessage="Please enter address"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtAddress" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>--%>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            City<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtCity" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvCity" runat="server" ErrorMessage="Please enter city"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtCity" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            State<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtState" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvState" runat="server" ErrorMessage="Please enter state"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtState" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            PinCode<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPincode" onkeypress="return isNumberKey(event)" MaxLength="6"
                                                runat="server" CssClass="span3 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvPC" runat="server" ErrorMessage="Please enter pincode"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtPincode" Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Username (Match)<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtUsernameBallToBall" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvP" runat="server" ErrorMessage="Please enter Username"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtUsernameBallToBall"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Password 1<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtBallToBallPassword" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvCP" runat="server" ErrorMessage="Please enter password"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtBallToBallPassword"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Password 2<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtBallToBallPassword2" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Please enter password"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtBallToBallPassword2"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Username (Session)<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtUsernameSession" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter username"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtUsernameSession"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Password 1 (Session)<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPasswordSession" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please enter password"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtPasswordSession"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Password 2 (Session)<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPasswordSession2" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="Please enter password"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtPasswordSession2"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Username (Fancy)<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtUsernameScore" runat="server" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter username"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtUsernameScore"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Password 1 (Score)<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPasswordScore" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please enter password"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtPasswordScore"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Password 2 (Score)<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:TextBox ID="txtPasswordScore2" runat="server" TextMode="Password" CssClass="span6 m-wrap"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Please enter password"
                                                ValidationGroup="Bookie" CssClass="required" ControlToValidate="txtPasswordScore2"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Is Active<span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:RadioButtonList ID="rdoActive" runat="server">
                                                <asp:ListItem Text="Active" Value="1" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="InActive" Value="0"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-actions">
                                <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btn red" ValidationGroup="Bookie"
                                    OnClick="btnSubmit_Click" />
                                <asp:Button ID="Button1" runat="server" Text="Cancel" CssClass="btn" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
